-- 菜单
BEGIN;
INSERT INTO `tb_sys_menu` VALUES (010000, 1, '1', '000000', '/home', 'Home', 'Layout', '/home/dashboard', NULL, '首页', 'home', NULL, 0, 0, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (010100, 1, '1', '010000', 'dashboard', 'Dashboard', '/home/dashboard/index', NULL, NULL, '系统概览', 'chart-combo', NULL, 0, 0, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (010200, 1, '1', '010000', 'tasks', 'Tasks', '/home/tasks/index', NULL, NULL, '待办任务', 'task-checked', NULL, 0, 1, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (020000, 1, '1', '000000', '/apps', 'Apps', 'Layout', '/apps/marketplace', NULL, '应用市场', 'app', NULL, 0, 1, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (020100, 1, '1', '020000', 'marketplace', 'Marketplace', 'Layout', '/apps/marketplace/index', NULL, '应用市场', 'app', NULL, 0, 0, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (020200, 1, '1', '020000', 'monitor', 'Monitor', 'Layout', '/apps/marketplace/index', NULL, '运维监控', 'precise-monitor', NULL, 0, 1, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (030000, 1, '1', '000000', '/user', 'User', 'Layout', '/user/info', NULL, '账号中心', 'user-circle', NULL, 0, 0, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (030100, 1, '1', '030000', 'info', 'UserInfo', '/user/info/index', NULL, NULL, '账号信息', 'user-circle', NULL, 0, 0, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (030200, 1, '1', '030000', 'logs', 'LoginLogs', '/user/info/index', NULL, NULL, '登录日志', 'system-log', NULL, 0, 1, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (040000, 1, '1', '000000', '/system', 'System', 'Layout', '/system/contacts', NULL, '系统管理', 'setting', NULL, 0, 0, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (040100, 1, '1', '040000', 'contacts', 'Contacts', '/user/info/index', NULL, NULL, '组织机构', 'tree-square-dot', NULL, 0, 0, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (040200, 1, '1', '040000', 'permission', 'Permission', '/user/info/index', NULL, NULL, '角色权限', 'secured', NULL, 0, 1, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (040300, 1, '1', '040000', 'menu', 'Menu', '/user/info/index', NULL, NULL, '菜单管理', 'menu', NULL, 0, 2, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (040400, 1, '1', '040000', 'setting', 'Setting', '/user/info/index', NULL, NULL, '系统设置', 'system-setting', NULL, 0, 3, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (040500, 1, '1', '040000', 'online', 'OnlineUser', '/user/info/index', NULL, NULL, '在线用户', 'user-list', NULL, 0, 4, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (040600, 1, '1', '040000', 'records', 'Records', '/user/info/index', NULL, NULL, '操作记录', 'catalog', NULL, 0, 5, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (040700, 1, '1', '040000', 'help', 'Help', NULL, NULL, NULL, '帮助文档', 'help-circle-filled', 'https://tdesign.tencent.com/starter/docs/vue-next/get-started', 0, 6, NULL, 0, 0);
INSERT INTO `tb_sys_menu` VALUES (040800, 1, '1', '040000', 'gitHup', 'GitHup', NULL, NULL, NULL, 'GitHup', 'logo-github-filled', 'https://tdesign.tencent.com/vue-next/getting-started', 1, 7, NULL, 0, 0);
COMMIT;

-- 部门
BEGIN;
INSERT INTO `tb_sys_dept` VALUES (1, 1, '荔城科技(广州)有限公司', 1, 0001, 1, NULL, NULL, 0, 1, 0);
COMMIT;

-- 角色
BEGIN;
INSERT INTO `tb_sys_role` VALUES (1, 1, 'superAdmin', '超级管理员', '拥有系统所有操作权限', NULL, 1, 1, 1, 0);
INSERT INTO `tb_sys_role` VALUES (2, 1, 'admin', '分级管理员', '拥有维护系组织结构(用户、部门、角色、权限)等操作权限', NULL, 0, 2, 1, 0);
INSERT INTO `tb_sys_role` VALUES (3, 1, 'storage', '文件存储', '拥有维护文件存储相关的操作权限', NULL, 0, 3, 1, 0);
INSERT INTO `tb_sys_role` VALUES (4, 1, 'accesslog', '审计日志', '拥有查阅审计日志的权限', NULL, 0, 4, 1, 0);
INSERT INTO `tb_sys_role` VALUES (5, 1, 'schedule', '定时器', '拥有维护定时调度器的相关操作权限', NULL, 0, 5, 1, 0);
COMMIT;

-- 用户
BEGIN;
INSERT INTO `tb_sys_user` VALUES (1, 1, 'luxor', 1, '{bcrypt}$2a$10$HsD3N5kAKiF8Kda2lhijG..OisgnWz7irNKLr65Erd6KYh.942uki', '', '颜新明', 0000, NULL, NULL, NULL, 0000, NULL, NULL, NULL, NULL, NULL, '默认密码(luxor@123)', NULL, 0, 1, 0, NULL);
COMMIT;

-- 用户与角色对应关系
BEGIN;
INSERT INTO `tb_sys_user_role_ref` VALUES (1, 1, 1, 1, 1, 0);
COMMIT;